package org.liuh.designs.spider.dtos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: AddressVo
 * @Description:
 * @Author: liuh
 * @Date: 2020/9/29 17:36
 * @Version: 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class AddressNode implements Serializable {

    /**
     * 父节点..
     */
    private AddressNode parentNode;

    private String addressName;

    /**
     * 区域地址编码
     */
    private String addressCode;

    /**
     * 获取子集url..
     */
    private String nodeUrl;

    /**
     * 城乡分类代码
     */
    private String cityCountryCode;

    /**
     * 地址等级..
     */
    private int level;

    /**
     * 子节点
     */
    private List<AddressNode> childNodeList;

    public AddressNode(String addressName, String addressCode) {
        this.addressName = addressName;
        this.addressCode = addressCode;
    }


}
